package com.st.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 学生表
 */
@Tag(name="t_student",description="学生表")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "t_student")
public class Student implements Serializable {
    /**
     * id唯一主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    @Schema(description="id唯一主键")
    private Integer id;

    /**
     * 学生姓名
     */
    @TableField(value = "`name`")
    @Schema(description="学生姓名")
    private String name;

    /**
     * 性别0:男生1:女生
     */
    @TableField(value = "age")
    @Schema(description="年龄")
    private Integer age;

    /**
     * 电话号
     */
    @TableField(value = "phone")
    @Schema(description="电话号")
    private String phone;

    /**
     * 删除标记0:未删除1:已删除
     */
    @TableField(value = "del_flag")
    @Schema(description="删除标记0:未删除1:已删除")
    private Integer delFlag;

    /**
     * 新建时间
     */
    @TableField(value = "create_time")
    @Schema(description="新建时间")
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time")
    @Schema(description="修改时间")
    private Date updateTime;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_NAME = "name";

    public static final String COL_AGE = "age";

    public static final String COL_PHONE = "phone";

    public static final String COL_DEL_FLAG = "del_flag";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_UPDATE_TIME = "update_time";
}